﻿<navigation:Page x:Class="sec.Examen.Examen" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           
           Title="Examen Page">
    <Grid x:Name="LayoutRoot">
        <StackPanel Orientation="Vertical">
        <Border  BorderThickness="2" VerticalAlignment="Center" HorizontalAlignment="Center" BorderBrush="Gray" Margin="0,50" CornerRadius="10" Width="400" Height="200" Padding="0">
            <Border.Effect>
                <DropShadowEffect/>
            </Border.Effect>
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFD2D2D2" Offset="0"/>
                    <GradientStop Color="#FFD2D2D2" Offset="1"/>
                    <GradientStop Color="Snow" Offset="0.342"/>
                    <GradientStop Color="#FFFFF9F9" Offset="0.59"/>
                </LinearGradientBrush>
            </Border.Background>
                <StackPanel Margin="10" VerticalAlignment="Center" >
                    <TextBlock Text="Código del Examen"   Margin="10" FontSize="20"  />
                     <TextBox Name="tbCodigo" IsTabStop="True"  Margin="10"  FontSize="20" KeyUp="tbCodigo_KeyUp" />
                     <Button Content="Aceptar"   HorizontalAlignment="Right" Margin="10" Width="100" Height="40" Grid.Row="4" FontSize="20" Click="Button_Click" />
                </StackPanel>
          </Border>
        <Border BorderBrush="Red" BorderThickness="1" Visibility="Collapsed" Name="bdError" Width="600" Padding="5"> 
            <TextBlock Name="tbError" Text="Error:" FontSize="16" Foreground="Red" />
        </Border>
        </StackPanel>
    </Grid>
</navigation:Page>
